package de.lijin.test;

import android.graphics.Color;
import android.graphics.drawable.GradientDrawable;

public class DesignHelper {
	
	GradientDrawable getBtnGradientDrawable(String strokColorToParse, String fillColorToParse,
			boolean isCornered) {
		int strokeWidth = 2;
		float cornerRadius = 7;
		int strokeColor = Color.parseColor(strokColorToParse);
		int fillColor = Color.parseColor(fillColorToParse);
		GradientDrawable gd = new GradientDrawable();
		gd.setColor(fillColor);
		gd.setStroke(strokeWidth, strokeColor);
		gd.setCornerRadius(cornerRadius);
		return gd;
	}


}
